home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / faq / tsfaqn45.zip / FAQFTP.TXT < prev    next >
Internet Message Format  |  1996-06-15  |  15KB

  1. From ts@uwasa.fi Sat Jun 15 00:00:00 1996
  2. Subject: FAQFTP.TXT contents
  3.                              Copyright (c) 1993-1996 by Timo Salmi
  4.                                                All rights reserved
  5.  
  6. FAQFTP.TXT Additional questions related to FTP (File Transfer
  7. Program). Comments and corrections are solicited.
  8.  
  9. ....................................................................
  10. Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
  11. Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
  12. Department of Accounting and Business Finance  ; University of Vaasa
  13. ts@uwasa.fi http://uwasa.fi/~ts BBS 961-3170972; FIN-65101,  Finland
  14.  
  15. --------------------------------------------------------------------
  16. 1) What is anonymous FTP? How do I get files from sites using it?
  17. 2) How to read scrolling text files on-line during an FTP session?
  18. 3) How do I convert Unix text files to PC files, and vice versa?
  19. 4) How do I download a zipped file using WWW and Netscape?
  20. --------------------------------------------------------------------
  21.  
  22. From ts@uwasa.fi Sat Jun 15 00:00:01 1996
  23. Subject: Basics of anonymous FTP
  24.  
  25. 1. *****
  26.  Q: What is anonymous FTP? How do I get files from sites using it?
  27.  
  28.  A: Both these questions are covered in PD2ANS.TXT which is a part
  29. of this same Frequently Asked Questions collection. See the very
  30. first question in the said file. For the second part of the question
  31. see Appendix A of PD2ANS.TXT. Much the same information is given in
  32. ftp://garbo.uwasa.fi/pc/pd2/camfaq.zip item "Hands on! A newbie's
  33. quick start to get you going. An example." That file has been posted
  34. regularly to the Usenet newsgroup comp.archives.msdos.announce.
  35. --------------------------------------------------------------------
  36.  
  37. From ts@uwasa.fi Sat Jun 15 00:00:02 1996
  38. Subject: Reading text files on-line in FTP
  39.  
  40. 2. *****
  41.  Q: How to read scrolling text files on-line during an FTP session?
  42.  
  43.  A: Take a moment to study the two tricks in the demonstration
  44. session log below. The tricks are "ls -CF" and "ls -lF |less". A
  45. third trick is to have a terminal emulator with a scroll-back
  46. buffer. E.g. MsKermit terminal emulation program has this convenient
  47. feature. You can even read a text file with theses trick by applying
  48. eg "get README |less". You can direct a listing to a file. Example
  49. "ls -lF dir.log". You shell from the session by "!less dir.log" to
  50. read the file.
  51.                *** IMPORTANT NOTICE ***
  52. Handy as these tricks are, you should use them judiciously, since
  53. they keep the FTP connection open. Recall that there may be many
  54. simultaneous users at the more popular FTP sites. It is better to
  55. decrease the load by first getting the text files (eg the example
  56. README, especially if it is long) and read them at your leasure at
  57. your own host after you have closed the FTP connection. There may
  58. even access limitations on the maximum simultaneous number of FTP
  59. users, so do not hog the connection.
  60.   > ftp garbo.uwasa.fi                             <--- your input
  61.   Connected to garbo.uwasa.fi.
  62.   220 garbo.uwasa.fi FTP server ready.
  63.   Name (garbo.uwasa.fi:ts): anonymous              <--- your input
  64.   331 Guest login ok, send ident as password.
  65.   Password: [your email address]                   <--- your input
  66.   230 Guest login ok, access restrictions apply.
  67.   ftp> ls -CF                                      <--- your input
  68.   200 PORT command successful.
  69.   150 Opening ASCII mode data connection for /bin/ls.
  70.   .FSP_CONTENT    bin/            lost+found/     pc/             ql/
  71.   .message        dev/            ls-lR.Z         photos/         unix/
  72.   CD-ROM.INF      etc/            mac/            private-ajh/    usr/
  73.   CDROM/          garbo-gifs/     mirror/         private-hv/     windows/
  74.   HELP            home-brew/      next/           private-ts/
  75.   226 Transfer complete.
  76.   remote: -CF
  77.   211 bytes received in 0.03 seconds (6.8 Kbytes/s)
  78.   ftp> cd /pc/ts                                   <--- your input
  79.   250 CWD command successful.
  80.   ftp> ls -lF |less                                <--- your input
  81.   200 PORT command successful.
  82.   150 Opening ASCII mode data connection for /bin/ls.
  83.   total 4087
  84.   -rw-rw-r--  1 ts          29359 Oct 11 04:03 0news-ts
  85.   -rw-rw-r--  1 ts          36892 Dec 31  1990 0news89.ts
  86.   [parts deleted]
  87.   -rw-rw-r--  1 ts          39143 May 31  1989 tsf2cm15.zip
  88.   -rw-rw-r--  1 ts          82531 Aug 18 11:46 tsfaqn37.zip
  89.   :q                                               <--- your input
  90.   226 Transfer complete.
  91.   local: |less remote: -lF
  92.   3638 bytes received in 70 seconds (0.051 Kbytes/s)
  93.   ftp> close                                       <--- your input
  94.   221 Goodbye.
  95.   ftp> quit                                        <--- your input
  96.   >
  97. There is also an alternative approach to reading long text files
  98. on-line if you are using a PC for your terminal emulation.  Get a
  99. screen buffer program where you can scroll the text back and forth.
  100. For example get
  101.  45720 Oct 19 01:08 ftp://garbo.uwasa.fi/pc/screen/scrlit18.zip
  102.  scrlit18.zip SCROLLit, Advanced Screen ScrollBack Buffer (good)
  103. or whatever version is the current. Another scrollback buffer
  104. program is /pc/screen/buffit30.zip.
  105. --------------------------------------------------------------------
  106.  
  107. From ts@uwasa.fi Sat Jun 15 00:00:03 1996
  108. Subject: Unix <--> MS-DOS conversions
  109.  
  110. 3. *****
  111.  Q: How do I convert Unix text files to PC files, and vice versa?
  112.  
  113.  A: This is maybe not be an actual FTP question, but it is so
  114. closely related to file transfers that it is at home here in
  115. faqftp.txt in ftp://garbo.uwasa.fi/pc/ts/tsfaqn44.zip.
  116.  
  117. > I need to convert a Unix text file to a PC text file. How can I do
  118. > that?
  119.  
  120. Unix and MS-DOS use different eolns (end of lines) for text files.
  121. In Unix the next line character is ascii 10, while MS-DOS uses an
  122. ascii 13 ascii 10 pair.
  123.  
  124. You can do the conversion in several different ways.
  125.  
  126. 1) If the text file with the Unix eolns is not already on your PC,
  127. first transfer the Unix file in binary mode from your Unix host to
  128. your PC. Convert the file with the Unix eolns on your PC. There are
  129. many programs that can do the conversion, like
  130.  "UNIX2PC.EXE Unix text eolns to PC eolns"
  131. from
  132.  122356 Apr 1 13:51 ftp://garbo.uwasa.fi/pub/pc/ts/tsfilt22.zip
  133.  tsfilt22.zip Programs for filtering messages, log files, Unix-PC, etc.
  134. or
  135.  "FILGEN.EXE  Generalized filter for any file"
  136.  "UNIX2PC.XLT Unix newlines to PC newlines"
  137. from
  138.  68793 Feb 20 14:04 ftp://garbo.uwasa.fi/pc/ts/tsfltb18.zip
  139.  tsfltb18.zip Easily customizable general filters, for text or binary.
  140. or
  141.  14395 Jul 26 1989 ftp://garbo.uwasa.fi/pc/unix/flip1exe.zoo
  142.  flip1exe.zoo Do newline conversions between *NIX and MS-DOS
  143. The advantage with flip is that it preserves data stamps and it
  144. works both ways (Unix -> MS-DOS, MS-DOS -> Unix). You can also
  145. preserve date stamps by using U2PC.BAT "Change Unix eolns to MS-DOS
  146. eolns" from tsfilt22.zip. Another advantage of flip is that it can
  147. take wild cards for the files to be flipped.
  148.  
  149. 2) Do the conversion from Unix eolns to MS-DOS eolns already at your
  150. Unix host using a Unix filter like
  151.  830 Mar 18 1993 ftp://garbo.uwasa.fi/unix/ts/unix2pc
  152.  unix2pc Filter Unix end of lines to PC end of lines, T.Salmi
  153. or a program like
  154.  26409 Dec 5 1992 ftp://garbo.uwasa.fi/unix/fileutil/flip.tar.Z
  155.  flip.tar.Z Covert text file eolns between MS-DOS and Unix
  156.  
  157. 3) The third option is complicated the first time out if you do not
  158. already have the necessary facilities installed, but once you do, it
  159. is perhaps the best alternative, since it decreases the size of the
  160. file to be transferred. I use this option quite a lot myself.
  161.  
  162. First make a .zip file of your Unix text file on your Unix host. For
  163. this you will need to have the zip program on your Unix host. The
  164. Unix .zip is available from the /unix/arcers directory at Garbo
  165. archives as
  166.  304911 Sep 23 21:12 ftp://garbo.uwasa.fi/unix/arcers/zip201.tar.Z
  167.  zip201.tar.Z Info-ZIP's portable zipper (Unix,VMS,..), 2.04 compatible
  168. If you do not know how to handle that, get
  169.  1781 Aug 12 00:26 ftp://garbo.uwasa.